package com.jm.bishe.mapper;



import com.jm.bishe.entity.User;
import com.jm.bishe.entity.UserUpdate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {

    List<User> queryUserByPhoneNumber(String phoneNumber);

    List<User> queryUserForAdmin(String phoneNumber);

    List<User> queryAllUser();

    int addUser(User user);

    int updateUser(UserUpdate userUpdate);

    int setVip(String phoneNumber);

    int updateVipCount(String phoneNumber,String vipCount);

    List<User> queryUserByVip(int isVip);

    String queryUserIdByNameAndIDNumber(@Param("realName")String realName, @Param("IDNumber") String IDNumber);
}
